home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat2 / standard / exit.z / exit
Encoding:
Text File  |  2002-10-03  |  8.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4. eeeexxxxiiiitttt((((2222))))                                                                eeeexxxxiiiitttt((((2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _eeee_xxxx_iiii_tttt, ______eeee_xxxx_iiii_tttt - terminate process
  10.  
  11. CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_tttt_dddd_llll_iiii_bbbb_...._hhhh_>>>>
  13.  
  14.      _vvvv_oooo_iiii_dddd _eeee_xxxx_iiii_tttt_((((_iiii_nnnn_tttt _ssss_tttt_aaaa_tttt_uuuu_ssss_))))_;;;;
  15.  
  16.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh_>>>>
  17.  
  18.      _vvvv_oooo_iiii_dddd ______eeee_xxxx_iiii_tttt_((((_iiii_nnnn_tttt _ssss_tttt_aaaa_tttt_uuuu_ssss_))))_;;;;
  19.  
  20. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  21.      The C library routine _eeee_xxxx_iiii_tttt, which is discussed at the end of this
  22.      section, invokes the system routine ______eeee_xxxx_iiii_tttt upon completion of its own
  23.      cleanup chores.  ______eeee_xxxx_iiii_tttt terminates the calling process with the following
  24.      consequences:
  25.  
  26.           All of the file descriptors, directory streams and message catalogue
  27.           descriptors open in the calling process are closed. If the process
  28.           is sharing file descriptors via an _ssss_pppp_rrrr_oooo_cccc, other members of the share
  29.           group do NOT have their file descriptors closed.
  30.  
  31.           A _SSSS_IIII_GGGG_CCCC_HHHH_LLLL_DDDD signal is sent to the calling process's parent process.
  32.  
  33.           If the parent process of the calling process has not specified the
  34.           _SSSS_AAAA______NNNN_OOOO_CCCC_LLLL_DDDD_WWWW_AAAA_IIII_TTTT flag [see _ssss_iiii_gggg_aaaa_cccc_tttt_iiii_oooo_nnnn(2)], the calling process is
  35.           transformed into a ``zombie process.''  A zombie process is a
  36.           process that only occupies a slot in the process table.  It has no
  37.           other space allocated either in user or kernel space.  The process
  38.           table slot that it occupies is partially overlaid with time
  39.           accounting information [see _<<<<_ssss_yyyy_ssss_////_pppp_rrrr_oooo_cccc_...._hhhh_>>>>] to be used by the _tttt_iiii_mmmm_eeee_ssss
  40.           system call.
  41.  
  42.           The parent process ID of all of the calling process's existing child
  43.           processes  and zombie processes is set to 1.  This means the
  44.           initialization process [see _iiii_nnnn_tttt_rrrr_oooo(2)] inherits each of these
  45.           processes.
  46.  
  47.           If the process belongs to a share group, it is removed from that
  48.           group.  Its stack segment is deallocated and removed from the share
  49.           group's virtual space.  All other virtual space that was shared with
  50.           the share group is left untouched.  If the _p_r_c_t_l (_PPPP_RRRR______SSSS_EEEE_TTTT_EEEE_XXXX_IIII_TTTT_SSSS_IIII_GGGG)
  51.           option has been enabled for the share group, than the specified
  52.           signal is sent to all remaining share group members.
  53.  
  54.           Each attached shared memory segment is detached and the value of
  55.           _ssss_hhhh_mmmm______nnnn_aaaa_tttt_tttt_aaaa_cccc_hhhh in the data structure associated with its shared memory
  56.           identifier is decremented by 1.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. eeeexxxxiiiitttt((((2222))))                                                                eeeexxxxiiiitttt((((2222))))
  71.  
  72.  
  73.  
  74.           For each semaphore for which the calling process has set a _ssss_eeee_mmmm_aaaa_dddd_jjjj
  75.           value [see _ssss_eeee_mmmm_oooo_pppp(2)], that _ssss_eeee_mmmm_aaaa_dddd_jjjj value is added to the _ssss_eeee_mmmm_vvvv_aaaa_llll of
  76.           the specified semaphore.
  77.  
  78.           If the process has a process, text, or data lock, an _u_n_l_o_c_k is
  79.           performed [see _pppp_llll_oooo_cccc_kkkk(2)].  If the process has any pages locked, they
  80.           are unlocked [see _mmmm_pppp_iiii_nnnn(2)].
  81.  
  82.           An accounting record is written on the accounting file if the
  83.           system's accounting routine is enabled [see _aaaa_cccc_cccc_tttt(2)].
  84.  
  85.           If the process is a controlling process, _SSSS_IIII_GGGG_HHHH_UUUU_PPPP is sent to the
  86.           foreground process group of its controlling terminal and its
  87.           controlling terminal is deallocated.
  88.  
  89.           If the calling process has any stopped children whose process group
  90.           will be orphaned when the calling process exits, or if the calling
  91.           process is a member of a process group that will be orphaned when
  92.           the calling process exits, that process group will be sent _SSSS_IIII_GGGG_HHHH_UUUU_PPPP
  93.           and _SSSS_IIII_GGGG_CCCC_OOOO_NNNN_TTTT signals.  Note that these signals are not sent if the
  94.           process became the process group leader through the invocation of
  95.           the _ssss_eeee_tttt_pppp_gggg_rrrr_pppp(2) system call.
  96.  
  97.           In all cases, if the calling process is a process group leader and
  98.           has an associated controlling terminal, the controlling terminal is
  99.           disassociated from the process allowing it to be acquired by another
  100.           process group leader.
  101.  
  102.           Any mapped files are closed and any written pages flushed to disk.
  103.  
  104.      The C function _eeee_xxxx_iiii_tttt(3C) calls any functions registered through the _aaaa_tttt_eeee_xxxx_iiii_tttt
  105.      function in the reverse order of their registration.  It then causes each
  106.      buffered file stream to be flushed, and, unless an _ssss_pppp_rrrr_oooo_cccc has been
  107.      executed, closed.  The function ______eeee_xxxx_iiii_tttt circumvents all such functions and
  108.      cleanup.
  109.  
  110.      The symbols _EEEE_XXXX_IIII_TTTT______SSSS_UUUU_CCCC_CCCC_EEEE_SSSS_SSSS and _EEEE_XXXX_IIII_TTTT______FFFF_AAAA_IIII_LLLL_UUUU_RRRR_EEEE are defined in _ssss_tttt_dddd_llll_iiii_bbbb_...._hhhh and may
  111.      be used as the value of _s_t_a_t_u_s to indicate successful or unsuccessful
  112.      termination, respectively.
  113.  
  114. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  115.      _aaaa_cccc_cccc_tttt(2), _iiii_nnnn_tttt_rrrr_oooo(2), _pppp_llll_oooo_cccc_kkkk(2), _ssss_eeee_mmmm_oooo_pppp(2), _ssss_iiii_gggg_aaaa_cccc_tttt_iiii_oooo_nnnn(2), _ssss_iiii_gggg_nnnn_aaaa_llll(2), _mmmm_mmmm_aaaa_pppp(2),
  116.      _mmmm_pppp_iiii_nnnn(2), _pppp_rrrr_cccc_tttt_llll(2), _ssss_iiii_gggg_pppp_rrrr_oooo_cccc_mmmm_aaaa_ssss_kkkk(2), _ssss_iiii_gggg_vvvv_eeee_cccc(3B), _ssss_iiii_gggg_bbbb_llll_oooo_cccc_kkkk(3B),
  117.      _ssss_iiii_gggg_ssss_eeee_tttt_mmmm_aaaa_ssss_kkkk(3B), _tttt_iiii_mmmm_eeee_ssss(2), _wwww_aaaa_iiii_tttt(2), _aaaa_tttt_eeee_xxxx_iiii_tttt(3C).
  118.  
  119. NNNNOOOOTTTTEEEESSSS
  120.      See _ssss_iiii_gggg_nnnn_aaaa_llll(2) NOTES.
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.